GetInfoStore Method (Session Object) 

The GetInfoStore method returns an InfoStore object that can be used to navigate through both public folders and the user s personal folders.

Syntax

Set objInfoStore = objSession.GetInfoStore(storeID)

Parameters

objInfoStore

On successful return, contains the InfoStore object with the specified identifier. When the InfoStore object does not exist, GetInfoStore returns Nothing.

objSession

Required. The Session object.

storeID

Required. String that specifies the unique identifier of the InfoStore to retrieve.

 

Remarks

The GetInfoStore method allows you to obtain any message store for which you know the identifier.

Example

The following example uses the GetInfoStore method to obtain a specific message store:

' from the function Session_GetInfoStore

' requires a global variable that contains the InfoStore ID

Dim strInfoStoreID as String ' ID as hex string

Dim objInfoStore As Object  ' InfoStore object

    If strInfoStoreID = "" Then

        MsgBox ("Must first set InfoStore ID variable")

        Exit Function

    End If

    Set objInfoStore = objSession.GetInfoStore(

                          storeID:=strInfoStoreID)

    ' error handling...

    MsgBox "InfoStore set to " & objInfoStore.Name

 

See Also

Folder Object

ID Property (Folder Object)Y080V6